package com.bio.utils;

public class Constants {

	public static final String VERIFYCODE = "verifyCode";
	
	public static final Long ALL_COMPANYS = -1L;
	
	public static final class Session{
		public static final String LOGIN_USER = "loginUser";
	}
	
	public static final class UserType{
		
		/**
		 * 超级管理员
		 */
		public static final Long SUPER_ADMIN = 1L;
		
		/**
		 * 试用用户
		 */
		public static final Long PROBATIONARY_USER = 2L;
		
		/**
		 * 公司管理员
		 */
		public static final Long Company_ADMIN = 3L;
		
	}
	
	public static final class User{
		public static final class LOGIN{
			public static final String LOGIN = "login";
			public static final String REGIST = "regist";
	    }
		
		/**
		 * 试用期使用时间，单位：月
		 */
		public static final int PROBATIONARY_MONTH = 1;
		
		public static final class UserType{
			/**
			 * 管理员
			 */
			public static final int ADMINISTRATOR = 0;
			
			/**
			 * 员工
			 */
			public static final int EMPLOYEE = 1;
			
			/**
			 * 试用用户
			 */
			public static final int PROBATIONARY_USER = 2;
			
			/**
			 * 正式用户
			 */
			public static final int CUSTOMER = 3;
			
			/**
			 * 用户代表
			 */
			public static final int CUSTOMER_ADMIN = 4;
		}
	}
	
	public static final class Region{
		
		public static final class Level{
			
			/**
			 * 国家
			 */
			public static final String COUNTRY = "0";
			
			/**
			 * 省
			 */
			public static final String PROVINCE = "1";
			
			/**
			 * 市
			 */
			public static final String CITY = "2";
			
			/**
			 * 区
			 */
			public static final String COUNTY = "3";
		}
	}
	
	public static final class Business{
		
		public static final class Channel{
			
			public static final class Nature{
				
				/**
				 * KA
				 */
				public static final int KA = 1;
				
				/**
				 * 重点连锁
				 */
				public static final int KEY_CHAIN = 2;
				
				/**
				 * 其它连锁
				 */
				public static final int OTHER_CHAIN = 3;
				
				/**
				 * 一级
				 */
				public static final int FIRST_DEGREE = 4;
				
				/**
				 * 二级
				 */
				public static final int SECOND_DEGREE = 5;
			}
			
			/**
			 * 需上传流向 0：否；1：是
			 */
			public static final class NeedUploadFlow{
				
				public static final int NOT_NEED = 0;
				
				public static final int NEED = 1;
			}
			
			/**
			 * 需上报库存 0：否；1：是
			 */
			public static final class NeedReportStock{
				
				public static final int NOT_NEED = 0;
				
				public static final int NEED = 1;
			}
		}
	}
	
    public static final class Basicinfo{
		
		public static final class Type{
		    
			/**
			 * 功能
			 */
			public static final int FUNCTION = 0;
			
			/**
			 * 剂型
			 */
			public static final int DOSAGE_FORM  = 1;
			
			/**
			 * 计量单位
			 */
			public static final int MEASURING_UNIT = 2;
		}
    }
    
    /**
     * 终端
     */
    public static final class Terminal{
		
		public static final class Level{
			
			public static final String A_LEVEL = "A";
			
			public static final String B_LEVEL = "B";
			
			public static final String C_LEVEL = "C";
			
			public static final String VIP_LEVEL = "VIP";
		}
		
		/**
		 * 性质
		 */
		public static final class Nature{
			
			/**
			 * 逐条
			 */
			public static final int ITEMIZE = -1;
			
			/**
			 * 全部
			 */
			public static final int ALL = 0;
			
			/**
			 * 加盟店
			 */
			public static final int FRANCHISEE = 1;
			
			public static final String FRANCHISEE_NAME = "加盟店";
			
			/**
			 * 直营门店
			 */
			public static final int RETAIL_STORES = 2;
			
			public static final String RETAIL_STORES_NAME = "直营门店";
			
			/**
			 * 单体药房
			 */
			public static final int SINGLE_UNIT  = 3;
			
			public static final String SINGLE_UNIT_NAME = "单体药房";
			
		}
		
		/**
		 * 参与医保
		 */
		public static final class JoinMedicalInsurance{
			
			public static final int NOT_JOIN = 0;
			
			public static final int JOIN = 1;
		}
		
		/**
		 * 参与积分
		 */
		public static final class JoinScorePoints{
			
			public static final int NOT_JOIN = 0;
			
			public static final int JOIN = 1;
		}
		
		/**
		 * 批发终端
		 */
		public static final class Wholesale{
            
			public static final int YES = 1;
			
			public static final int NO = 0;
		}
    }
    
    public static final class Task{
	    	public static final class Status{
	    	public static final int TODO = 0;
	    	public static final int PROCESSING = 1;
	    	public static final int DONE = 2;
	    	public static final int DELAY = 3;
    	}
    }
    
    public static final class Operation{
    	public static final String FAIL = "failInfo"; 
    }
    
}
